﻿using System;
using System.Web.UI;
using Microsoft.Live.ServerControls.VE;

namespace Microsoft.Live.ServerControls.Web
{
    public partial class Multimap : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Map1.MapStyle = MapStyle.Aerial;
            // Hybrid map no longer supported
            //Map2.MapStyle = MapStyle.Hybrid;
            Map3.MapStyle = MapStyle.Shaded;
            Map4.MapStyle = MapStyle.Road;

            Map1.ShowFindControl = true;
            // Hybrid map no longer supported
            //Map2.ShowFindControl = true;
            Map3.ShowFindControl = true;
            Map4.ShowFindControl = true;


        }

        protected void changeallmaps_Click(object sender, EventArgs e)
        {
            Map1.ZoomIn();
            // Hybrid map no longer supported
            // Map2.ZoomOut();
            Map3.Pan(200,200);
            Map4.Pan(-200,-200);
        }

        protected void changeallmapsAJAX_Click(object sender, EventArgs e)
        {
            Map4.ZoomIn();
            Map3.ZoomOut();
            // Hybrid map no longer supported
            // Map2.Pan(200, 200);
            Map1.Pan(-200, -200);
        }
    }
}
